package org.example.domain;

import lombok.Getter;

/**
 * @author: sql
 * @date: 2024/6/7
 * @Description: 常用异常码
 * @version: 1.0
 */
@Getter
public enum BaseCodeEnum implements ICodeEnum {

    SUCCESS("00000", "一切 OK"),

    SERVICE_EXCEPTION("A0001", "业务异常，统一进行处理，不指定错误都是这个！！"),
    ;

    /**
     * 错误代码
     */
    private final String code;

    /**
     * 错误提示
     */
    private final String msg;

    BaseCodeEnum(String code, String msg) {
        this.code = code;
        this.msg = msg;
    }

}
